﻿Ext.onReady(function () {
    Ext.apply(Kwan, {
        def: Order
    });
});
Ext.apply(Kwan, {
    orderColor: ['red', 'blue', 'green', 'red', 'blue', 'blue'],
    orderTips: ['系统作废', '未结账', '已结账', '已作废', '已挂账', '已免受'],
    prepareOrderStatus: function (d) {
        var template = '<span style="color:{0};">{1}</span>';
        return String.format(template, Kwan.orderColor[d], Kwan.orderTips[d]);
    }
});